package com.ulic.customerManApplication.commonmodule.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ulic.customerManApplication.commonmodule.bo.Activie;
import com.ulic.customerManApplication.commonmodule.dao.ActivieDao;
import com.ulic.customerManApplication.commonmodule.service.ActivieService;


@Component("activieService")
public class ActivieServiceImpl implements ActivieService {

	private ActivieDao activieDao;
	
	@Resource
	public void setActivieDao(ActivieDao activieDao) {
		this.activieDao = activieDao;
	}


	@Override
	public Activie getActivie(int oid) throws Exception {
		return activieDao.getActivie(oid);
	}


	@Override
	public List<Activie> getActivie() throws Exception {
		return activieDao.getActivie();
	}


	@Override
	public void setUserActivie(String userid, int objectid) throws Exception {
		activieDao.setUserActivie(userid, objectid);
	}


	@Override
	public int[] getUserActivie(String userid) throws Exception {
		return activieDao.getUserActivie(userid);
	}


	@Override
	public boolean isUserActivie(String userid) throws Exception {
		return activieDao.isUserActivie(userid);
	}

}
